package java小总结;

public class Demo {
    public static void main(String[] args) {
        String sb = "53285964@qq.com";
        String str = sb.substring(0, sb.indexOf("@"));
        System.out.println(str);

        String str2 = sb.substring( sb.lastIndexOf("@")+1,sb.length());
        System.out.println(str2);
    }
}
